package operation.observer;

import operation.observer.abs.Observer;
import operation.observer.objs.ScreenA;
import operation.observer.objs.ScreenB;
import operation.observer.objs.WeatherData;

public class Client {
    public static void main(String[] args) {
        WeatherData src = new WeatherData();
        Observer o1 = new ScreenA("screen A");
        Observer o2 = new ScreenB("screen B");

        src.registerObserver(o1);
        src.registerObserver(o2);

        src.updateData(2.0f, 3.0f);
    }
}
